package com.zpark.servlet_listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @PackageName: com.zpark.servlet_listener
 * @ClassName: ServletContextInitDestory
 * @Description:
 * @author: RZS
 * @date: 2023/3/13  16:03
 */

public class ServletContextInitDestory implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("ServletContext被创建");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("ServletContext被销毁");
    }
}
